<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%--
  Created by IntelliJ IDEA.
  User: zhangyiyi
  Date: 2025/3/3
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<!--输入成绩-->
<form>
    <input name="grade" type="number">
    <input type="submit">
</form>
<!--判断成绩等级-->
<c:if test="${!(empty param.grade)}">
    <c:choose>
        <c:when test="${param.grade>=90}">
            ${param.grade}：等级为优
        </c:when>
        <c:when test="${param.grade>=80}">
            ${param.grade}：等级为良
        </c:when>
        <c:when test="${param.grade>=70}">
            ${param.grade}：等级为合格
        </c:when>
        <c:otherwise>
            ${param.grade}：等级为不合格
        </c:otherwise>
    </c:choose>
</c:if>
</body>
</html>
